package com.h3c.nem.config;

import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import com.eos.common.util.IdWorker;
import org.springframework.stereotype.Component;

/**
 * 自动生成id
 *
 * @author z22968
 * @date 2022-06-09 10:46
 */
@Component
public class CustomerIdGenerator implements IdentifierGenerator {
    @Override
    public Number nextId(Object entity) {
        return IdWorker.nextId();
    }
}
